package com.zyd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyd.entity.CheckGroupSetmeal;
import com.zyd.mapper.CheckGroupSetmealMapper;
import com.zyd.service.CheckGroupSetmealService;
import org.springframework.stereotype.Service;

@Service
public class CheckGroupSetmealServiceImpl
        extends ServiceImpl<CheckGroupSetmealMapper, CheckGroupSetmeal>
        implements CheckGroupSetmealService {

    @Override
    public boolean removeBySetmealId(Integer setmealId) {
        return this.lambdaUpdate()
                .eq(CheckGroupSetmeal::getSetmealId, setmealId)
                .remove();
    }
}